package io.renren.modules.workmanagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.workmanagement.entity.QuestionBankEntity;
import io.renren.modules.workmanagement.vo.QuestionBankVO;

import java.util.List;
import java.util.Map;

/**
 * 题库
 *
 * @author yewei
 * @email sunlightcs@gmail.com
 * @date 2022-04-17 16:15:30
 */
public interface QuestionBankService extends IService<QuestionBankEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<QuestionBankEntity> getListByClassCourseIdAndCreateUser(Long courseId, Long userId);

    void saveQuestionBank(QuestionBankVO questionBank, Long userId);

    void updateQuestionBank(QuestionBankVO questionBank);

    void removeQuestionBanks(List<String> asList);

    QuestionBankVO getByBankId(Long id);

    List<QuestionBankEntity> likeByName(String key);
}

